include_directories("../include")

add_library(freecplus
    SHARED
    # STATIC
    _freecplus.cpp
    _ftp.cpp
    ftplib.c
)

add_library(freecplus_mysql
    SHARED
    db/_mysql.cpp
)

install(TARGETS freecplus_mysql freecplus
    RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
    LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
    ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
)

install(DIRECTORY ../include/ TYPE INCLUDE)